package com.hhss.qishi.entity;

import com.hhss.qishi.entity.system.User;

import java.util.List;

//@Component
public class JsonResult {
 
	private String status = null;
 
	private Object result = null;
 
	public JsonResult status(String status) {
		this.status = status;
		return this;
	}

	/**
	 * @param user
	 */
	public void setResult(User user) {
		System.out.println("user"+user.toString());
		result = user;
	}

	/**
	 * @param status
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @param string
	 */
	public void setResult(String string) {
		result = string;
	}

	/**
	 * @param users
	 */
	public void setResult(List<User> users) {
		result = users;
		
	}

	/**
	 * @param orderId
	 */
	public void setResult(int orderId) {
		result = orderId;
		
	}

	/**
	 * @return the result
	 */
	public Object getResult() {
		return result;
	}

	/**
	 * @param result the result to set
	 */
	public void setResult(Object result) {
		this.result = result;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

}
